home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group02b.txt / 000003_icon-group-sender_Thu Aug 15 13:14:54 2002.msg < prev    next >
Internet Message Format  |  2003-01-02  |  4KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id g7FKEc607370
  4.     for icon-group-addresses; Thu, 15 Aug 2002 13:14:38 -0700 (MST)
  5. Message-Id: <200208152014.g7FKEc607370@baskerville.CS.Arizona.EDU>
  6. From: Christopher Browne <cbbrowne@acm.org>
  7. X-Newsgroups: comp.lang.icon
  8. Subject: Re: What about "Expressions?" (was Re: Icon Wish List)
  9. Date: 15 Aug 2002 16:53:13 GMT
  10. X-Draft-From: ("nnvirtual:Languages" 978)
  11. X-Home-Page: http://www.cbbrowne.com/info/
  12. X-Emacs-Acronym: Elsewhere Maybe All Commands are Simple
  13. Microsoft: Where the service packs are larger than the original releases.
  14. X-Shopping-List: 
  15.    (1) Domestic temptations
  16.    (2) Philanthropic load nougat
  17.    (3) Political seduction circumcisions
  18.    (4) Titanic directions
  19. X-Uboat-Death-Message: BOMBED BY AIRCRAFT. SINKING. U-541.
  20. To: icon-group@cs.arizona.edu
  21. Errors-To: icon-group-errors@cs.arizona.edu
  22. Status: RO
  23.  
  24. A long time ago, in a galaxy far, far away, Hrvoje Blazevic <hrvoje@despammed.com> wrote:
  25. > On Thu, 15 Aug 2002 02:16:33 +0200, Christopher Browne wrote:
  26. >
  27. >> This is indeed an interesting question.
  28. >> 
  29. >> It _may_ be that the notion of "expression-based" being referenced is
  30. >> that control structures work on the expression in a bit of a different
  31. >> way than in Algol-descended languages.
  32. >> 
  33. >> But it's not clear.
  34. >> 
  35. >> Terse is definitely a "hype-heavy, theory-light" language; in the
  36. >> absence of more documentation, it's not obvious what it's doing that is
  37. >> similar to Icon that _isn't_ similar to C or Modula-3.
  38. >> 
  39. >> And I think the likelihood of Icon "launching" because of being regarded
  40. >> as a "more low level language" as being, um, rather remote. Terse hasn't
  41. >> been taking the world by storm any more than FORTH has.
  42. >> 
  43. >> But I'd be curious as to what the definition of "Expressions" is
  44. >> supposed to be, in this context.
  45.  
  46. > I must be careful here, lest someone from this group answers; " If
  47. > you can't speak English", how can you understand what an expression
  48. > is".
  49.  
  50. You're exactly right, and I'd certainly not "mark you down" for not
  51. being a native speaker of English.  (I don't think I know how to
  52. pronounce _your_ first name, so I have my own "issues of illiteracy"
  53. :-).)
  54.  
  55. > Anyway, I'm not very interested in theoretical definition of what an
  56. > expression means. The reaction was just to the statement that: The
  57. > only other computer language that I know of which uses expressions
  58. > is Terse (www.terse.com) an expression-based assembly language.
  59.  
  60. I think theory _is_ important here; it's from theory that we can get
  61. some common concepts that allow us to agree on just what it is that
  62. the word "expressions" means.
  63.  
  64. > Now, I don't know terse (never heard of it), but I do know that
  65. > Scheme is an expression based language. Everything (except
  66. > definition) is an expression - even assignment is.
  67.  
  68. OK...
  69.  
  70. > I guess that the important difference here is that most imperative
  71. > languages (except Icon) work with statements. Scheme and the rest of
  72. > FP languages work with expressions.
  73. >
  74. > To quote an example from Graphics Programming in Icon; p9
  75. >
  76. > In Pascal, the following line is a statement:
  77. >
  78. > if switch = on then write("on") else write("off");
  79. >
  80. > Icon is different in this regard. Icon has no statements, only expressions.
  81. > ...
  82. > write(if switch = on then "on" else "off")
  83. >
  84. > end quote.
  85. >
  86. > Well, the same is true for Scheme (or Lisp, and other FP languages
  87. > in general)
  88.  
  89. I'm just not sure I'm seeing what is the essential difference between
  90. "statements" and "expressions" here.
  91.  
  92. I'm not a dumb reader; your English seems fine (better than far too
  93. many natives!); I'm _quite_ familiar with Lisp and Scheme; I'm just
  94. not sure what the difference you're getting at is.  And perhaps what
  95. you have in mind isn't the same as what the guy that brought up Terse
  96. had in mind...
  97. -- 
  98. (concatenate 'string "chris" "@cbbrowne.com")
  99. http://www.ntlug.org/~cbbrowne/languages.html
  100. Why isn't phonetic spelled the way it sounds?
  101.